package com.service;

import com.mypg.Question;
import com.mypg.TQuestion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionService {
    List<Question> selectAllQuestion();
    Question selectQuestionByQuestion_id(int question_id);
    List<Question> selectQuestionFor_question_table_jsp(String question_class, String question_chapter,String question_ori,
                                                        int start_row, int page_nums);
    int selectQuestion_count_For_question_table_jsp(String question_class, String question_chapter,String question_ori);
    int selectQuestion_count();


    List<Question> selectAllQuestionByChapter(String question_class,String question_chapter,String rand_flag,int rand_num,
                                              String other_class);
    int selectCountByChapter(String question_class,String question_chapter,String rand_flag,int rand_num,
                             String other_class);


    List<Question> selectQuestionForReal_test(String question_class, String question_chapter,int question_num,int rand_num);
    String[] selectQuestion_chapter(String question_class);

    List<TQuestion> selectAllTQuestion();

    void insertQuestion(Question question);

    void deleteQuestionByQuestion_id(int question_id);

    void updateQuestionByQuestion_id(Question question);
    void updateQuestion_imgByQuestion_id(String question_img,int question_id);
}
